#include<stdio.h>

int func(int a, int b){
  int sum = 0, i;
  for(i = a; i <= b; i++){
    sum += i;
  }
  return sum;
}

int main(){
  int a = 1, b = 100;
  int c =  func(a, b);
  printf("从%d -> %d 的值是：%d", a, b, c);
  return 0;
}
